<template>
  <div>
    <TypeNav />
    <ListContainer />
    <TodayRecommend />
    <Rank />
    <Like />
    <Floor v-for="item in floorList" :key="item.id" :list="item" />
    <!--    <Floor />-->
    <Brand />
  </div>
</template>
<script>
import ListContainer from "@/pages/Home/ListContainer";
import TodayRecommend from "@/pages/Home/TodayRecommend/TodayRecommend.vue";
import Rank from "@/pages/Home/Rank/Rank.vue";
import Like from "@/pages/Home/Like/Like.vue";
import Floor from "@/pages/Home/Floor/Floor.vue";
import Brand from "@/pages/Home/Brand/Brand.vue";
import { mapState } from "vuex";

export default {
  name: "Home",
  components: {
    ListContainer,
    TodayRecommend,
    Rank,
    Like,
    Floor,
    Brand,
  },
  props: [],
  data() {
    return {};
  },
  watch: {},
  computed: {
    ...mapState({ floorList: (state) => state.home.floorList }),
  },
  methods: {},
  created() {},
  mounted() {
    this.$store.dispatch("getFloorList");
  },
};
</script>
<style scoped></style>
